<div class="mozaic-widget widget-task_form" data-widget="task_form" data-params="{&quot;model_id&quot;:null,&quot;model_path&quot;:&quot;cs!model/task&quot;,&quot;channel_key&quot;:&quot;tasks&quot;,&quot;modal&quot;:true,&quot;title&quot;:&quot;Add a task&quot;,&quot;id&quot;:&quot;e67a611e86f93deb69b3f9fa255a2202&quot;,&quot;object_class&quot;:&quot;mention&quot;,&quot;required_channels&quot;:[{&quot;channel&quot;:&quot;/users&quot;,&quot;model_attribute&quot;:&quot;users&quot;,&quot;sync&quot;:false},{&quot;channel&quot;:&quot;/annotables/{{id}}&quot;,&quot;model_attribute&quot;:&quot;annotable&quot;,&quot;sync&quot;:false}],&quot;channels&quot;:{&quot;/tasks&quot;:&quot;/tasks-2666&quot;,&quot;/users&quot;:&quot;/users-0&quot;,&quot;/annotables&quot;:&quot;/search_mentions-2556&quot;}}" data-guid="widget-2841" data-initialized="true"><p class="mention-text original-mention"></p>
    <p class="errors"></p>
    <div class="form">
        <form class="bbf-form">
            <fieldset>
                <legend></legend>
                <div>
                    <div>
                        <label for="c2844_assigned_to" class="label-form">Assign to</label>
                        <div>
                            <select id="c2844_assigned_to" name="assigned_to">
                                <?php
                                    $users = User::listUser();
                                    foreach($users as $user) {
                                        $userId = $user->id;
                                        $userName = $user->name;
                                        echo "<option value=\"$userId\">$userName</option>";
                                    }
                                ?>
                            </select>
                        </div>
                        <div class="help-block"></div>
                    </div>
                    <div>
                        <label for="c2844_category_id" class="label-form">Task</label>
                        <div>
                            <select id="c2844_category_id" name="category_id">
                                <?php
                                    $taskTypes = TaskType::listName();
                                    foreach($taskTypes as $taskType) {
                                        $typeId = $taskType["id"];
                                        $typeName = $taskType["name"];
                                        echo "<option value=\"$typeId\">$typeName</option>";
                                    }
                                ?>
                            </select>
                        </div>
                        <div class="help-block"></div>
                    </div>
                    <div>
                        <label for="c2844_description" class="label-form">Description</label>
                        <div>
                            <textarea id="c2844_description" name="description" type="text"></textarea>
                        </div>
                        <div class="help-block">Anything else you would like to add</div>
                    </div>
                </div>
            </fieldset>
        </form>
    </div>
    <input type="submit" class="btn btn-red commit" value="Save">
</div>